<script type="text/javascript">


</script>
<head>
    <script src="js/caja.js" type="text/javascript"></script>
    <script src="js/movimientos.js" type="text/javascript"></script>
</head>
<body onload="selectPantallaCaja();">
    <div style="height: 35px;"></div>
    <table id="clientes" border="0" style="width: 100%;" >
        <tbody>

            <tr><td colspan="8"><h1>Caja</h1></td><td></td></tr>

            <?php if ($tipoCaja == 'abrir') { ?>
                <tr >
                    <td>
                        <table style="width: 100%; background-color: white;box-shadow: 0px 0px black; border-radius: 5px;border-style: solid;border-width: 0px; ">
                            <tr>
                                <td style="font-size: 1.2em;">Abrir Caja</td>
                                <td style="font-size: 1.2em;">Saldo Inicial</td>
                                <td style="font-size: 1.2em;width: 400px;"><div style="width: 400px;" id="cajaSaldoInicialPesos"></div></td>
                                <td><input type="button" value="Abrir Caja" name="btnOpenCaja" onclick="openCaja()" class="btnSave"/></td>
                            </tr>

                        </table>
                    </td>

                </tr>
            <?php } elseif ($tipoCaja == 'cerrar') { ?>
                <tr>
                    <td> 
                        <table style="width: 100%; background-color: white;box-shadow: 0px 0px black; border-radius: 5px;border-style: solid;border-width: 0px; ">
                            <tr style="width: 100%;">
                                <td style="font-size: 1.2em;width: 100px;">Cerrar Caja</td>
                            </tr>
                            <tr>
                                <td>
                                    <div id='cajaCierreResultadoMonedas' ></div>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td><input type="button" value="Cerrar Caja" name="btnCloseCaja" onclick="closeCaja()" class="btnSave"/></td>
                            </tr>
                        </table>
                    </td>
                </tr>

            <?php } ?>
            
        </tbody>
    </table>
    <input type="hidden" id="hRol" value="<?php echo $_SESSION['ha_rol'] ?>"/>
    <div id="resultadosServer" class="resultadosServer" ></div>
    <div id="almacenCobros"><?php include './cobros.php' ?></div>
</body>